###测试用例文件中的变量传递到fixture函数

import pytest
from conftest1 import gen_token
from conftest2 import setup_before
test_param = [(1, 4)]

@pytest.mark.parametrize("gen_token", test_param, indirect=True)
@pytest.mark.parametrize("setup_before", test_param, indirect=True)
def test_case1(gen_token, setup_before):
    print("\n测试用例里拿到的gen_token返回值：", gen_token)
    print("测试用例里拿到的setup_before返回值：", setup_before)
    print("执行测试用例test_case1...")


if __name__ == '__main__':
    pytest.main(['-s', 'test_case.py'])